module.exports=function(url,data){
    return new Promise(function(resolve,reject){
        wx.request({
            url:`https://locally.uieee.com/${url}`,
            data,
            success:resolve,
            fail:reject,
        });
    });
}

// module.exports=(url,data)=>{
//     return new Promise(function(resolve,reject){
//         wx.request({
//             url:'https://locally.uieee.com/'+url,
//             data:data,
//             success:resolve,
//             fail:reject,
//         });
//     });
// }